<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta http-equiv="Content-Type" content="text/html"; charset="UTF-8">
    <title>登录</title>
</head>
<body class="text-conter">
<form class="form-signin" th:action="@{/login}" th:method="post">
    <div th:if="${param.error}" style="color: red;height: 40px;text-align: left;font-size: 1.1em">
        用户名或密码错误。
    </div>
    <input type="text" name="name" class="form-control" placeholder="用户名" required="" autofocus="">
    <input type="password" name="pwd" class="form-control" placeholder="密码" required="">
    <button class="btn btn-lg btn-primary btn-block" type="submit">登录</button>
</form>

</body>
</html>